package com.zone.infrastructure.persistent.dao;

import com.zone.infrastructure.persistent.po.RaffleActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: zongzi
 * @description: 抽奖活动相关
 * @date: 2024/6/24
 */
@Mapper
public interface IRaffleActivityDao {

    /**
     * 查询抽奖活动那个
     *
     * @param activityId 活动id
     * @return 抽奖活动
     */
    RaffleActivity get(@Param("activityId") Long activityId);

    /**
     * 根据策略id查询抽奖活动
     *
     * @param strategyId
     * @return
     */
    RaffleActivity queryActivityByStrategyId(@Param("strategyId") Long strategyId);
}
